/* 虚拟环境管理页面样式 */

/* 创建虚拟环境表单 */
.create-venv-form {
    max-width: 600px;
}

.create-btn {
    background: linear-gradient(135deg, #2979ff, #1565c0);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-btn:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-1px);
}

/* 虚拟环境列表 */
.venv-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.venv-item {
    background: #262626;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s ease;
}

.venv-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
    border-color: #444;
}

.venv-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #333;
}

.venv-info h3 {
    color: #64b5f6;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.venv-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #bdbdbd;
    font-size: 14px;
}

/* 包管理部分 */
.package-section {
    padding: 20px;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-header:hover {
    background: #2c2c2c;
}

.package-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-toggle {
    width: 16px;
    height: 16px;
    position: relative;
    transition: transform 0.3s ease;
}

.package-toggle::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 2px;
    width: 8px;
    height: 2px;
    background-color: #64b5f6;
}

.package-toggle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 5px;
    width: 2px;
    height: 8px;
    background-color: #64b5f6;
    transition: transform 0.3s ease;
}

.package-section.expanded .package-toggle::after {
    transform: scaleY(0);
}

.package-header h4 {
    color: #e0e0e0;
    margin: 0;
    font-size: 16px;
}

.package-actions {
    display: flex;
    gap: 10px;
}

.package-input {
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
    min-width: 200px;
}

.package-input:focus {
    border-color: #64b5f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
}

.package-list {
    display: none;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.package-section.expanded .package-list {
    display: flex;
}

.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #333;
}

.package-name {
    color: #e0e0e0;
    font-size: 14px;
}

.package-version {
    color: #757575;
    margin-left: 5px;
}

.uninstall-btn {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uninstall-btn:hover {
    background: linear-gradient(135deg, #b71c1c, #7f0000);
    transform: translateY(-1px);
}

.delete-btn {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #b71c1c, #7f0000);
    transform: translateY(-1px);
}

.no-venv {
    color: #757575;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* 状态消息 */
.status-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    background: #333;
    color: #fff;
    font-size: 14px;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .venv-header {
        flex-direction: column;
        gap: 15px;
    }

    .package-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .package-actions {
        flex-direction: column;
    }

    .package-input {
        width: 100%;
    }
} 